<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2016/8/26
  Time: 14:50
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <%@ include file="/include/easyui.jsp" %>
    <title>订单中心-门票券票订单管理</title>
</head>
<body>
<div id="toolbar">
    <select id="orderType" class="easyui-combobox" style="width:100px">
        <option value="0">全部类型</option>
        <option value="1">门票</option>
        <option value="2">餐饮优惠券</option>
        <option value="3">购物优惠券</option>
    </select>
    <input id="orderNumber" class="easyui-searchbox" data-options="prompt:'请输入订单号',searcher: doSearch"
           style="width:200px"/>
    <input id="mobile" class="easyui-searchbox" data-options="prompt:'请输入手机号',searcher: doSearch" style="width:200px"/>
    <input id="nickname" class="easyui-searchbox" data-options="prompt:'请输入昵称',searcher: doSearch" style="width:200px"/>
    <br/>
    <select id="orderStatus" class="easyui-combobox" style="width:100px">
        <option value="0">全部状态</option>
        <option value="4">已支付</option>
        <option value="5">未支付</option>
        <option value="6">已过期</option>
        <option value="7">已验证</option>
        <option value="8">已评论</option>
        <option value="9">已退款</option>
    </select>
    <input id="couponCode" class="easyui-searchbox" data-options="prompt:'请输入优惠券码',searcher: doSearch" style="width:200px"/>
    <input id="startVerifyTime" class="easyui-datetimebox" data-options="prompt:'验证开始验证时间'" style="width:200px"/>
    <input id="endVerifyTime" class="easyui-datetimebox" data-options="prompt:'验证结束验证时间'" style="width:200px"/>
</div>
<div id="dialogDetail"></div>
<table class="easyui-datagrid" id="datagrid"></table>
<script src="${cdnContentPath}/static/template7/dist/template7.js"></script>
<script type="text/template7" id="detail">
    <div style="padding:10px;">
        <table style="font-size: 13px;font-family: 'ArialMT','Arial';line-height: 20px;">
            <tr>
                <td>订单编号:</td>
                <td>{{id}}</td>
            </tr>
            <tr>
                <td>订单号:</td>
                <td>{{orderNumber}}</td>
            </tr>
            <tr>
                <td>用户昵称:</td>
                <td>{{wechatNickname}}</td>
            </tr>
            <tr>
                <td>购买数量:</td>
                <td>{{amount}}</td>
            </tr>
            <tr>
                <td>付款时单价:</td>
                <td>{{unitPrice}}</td>
            </tr>
            <tr>
                <td>应付款:</td>
                <td>{{js "this.unitPrice * this.amount"}}</td>
            </tr>
            <tr>
                <td>实付款:</td>
                <td>{{lastPrice}}</td>
            </tr>
            <tr>
                <td>优惠主键:</td>
                <td>{{coupon.id}}</td>
            </tr>
            <tr>
                <td>优惠券码:</td>
                <td>{{coupon.couponCode}}</td>
            </tr>
            <tr>
                <td>手机号:</td>
                <td>{{mobileNumber}}</td>
            </tr>
            <tr>
                <td>订单备注:</td>
                <td>{{remark}}</td>
            </tr>
            <tr>
                <td>商家编号:</td>
                <td>{{sellerId}}</td>
            </tr>
            <tr>
                <td>商家名称:</td>
                <td>{{sellerName}}</td>
            </tr>
            <tr>
                <td>内容编号:</td>
                <td>{{targetId}}</td>
            </tr>
            <tr>
                <td>内容标题:</td>
                <td>{{target.title}}</td>
            </tr>
            <tr>
                <td>创建时建:</td>
                <td>{{createTime}}</td>
            </tr>
        </table>
    </div>
</script>
<script type="text/javascript" src="${relativePath}/admin-view/order_center/ticket/ticket.js"></script>
</body>
</html>
